import request from '@/utils/request'

// 查询用户权限信息列表
export function listLeUserAuth(query) {
  return request({
    url: '/lease/leUserAuth/list',
    method: 'get',
    params: query
  })
}

// 查询用户权限信息详细
export function getLeUserAuth(userAuthId) {
  return request({
    url: '/lease/leUserAuth/' + userAuthId,
    method: 'get'
  })
}

// 新增用户权限信息
export function addLeUserAuth(data) {
  return request({
    url: '/lease/leUserAuth',
    method: 'post',
    data: data
  })
}

// 修改用户权限信息
export function updateLeUserAuth(data) {
  return request({
    url: '/lease/leUserAuth',
    method: 'put',
    data: data
  })
}

// 删除用户权限信息
export function delLeUserAuth(userAuthId) {
  return request({
    url: '/lease/leUserAuth/' + userAuthId,
    method: 'delete'
  })
}
